#ifndef  __UPDATESTATE_H
#define  __UPDATESTATE_H

#define POWER_HEADER 0x01
#define POWER_STATE_MASK 0x03
#define CHARGE_STATE_MASK 0x03

extern char rxbuf[100];//100个字节的缓冲

void updateState(char *buf);

#endif // ! __UPDATESTATE_H